package com.xuda.staservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Description:@EnableScheduling
 * @EnableTransactionManagement
 * @EnableDiscoveryClient
 * @EnableFeignClients    //服务调用
 * @ComponentScan("com.atguigu")
 * @SpringBootApplication//取消数据源自动配置
 * @MapperScan("com.atguigu.staservice.mapper")
 * @Author: StarSea99
 * @Date: 2020-11-03 19:08
 */
@EnableScheduling
@EnableTransactionManagement
@EnableDiscoveryClient
@EnableFeignClients    //服务调用
@ComponentScan("com.xuda")
@SpringBootApplication//取消数据源自动配置
@MapperScan("com.xuda.staservice.mapper")
public class ServiceStatisticsApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceStatisticsApplication.class, args);
    }
}
